package com.service.socket;


import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.service.socket.rabbitmq.binding.MatchSink;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@EnableScheduling
@ServletComponentScan
@EnableTransactionManagement
@MapperScan("com.service.*.mapper")
@EnableBinding({ MatchSink.class})
@SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class)
public class SocketApplication {

    public static void main(String[] args) {
        log.info("业务模块启动中");
        SpringApplication.run(SocketApplication.class, args);
    }

}
